package com.sinooceangroup.capital.gateway.filter;

import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.stereotype.Component;

/**
 * 使用NormalGatewayFilterFactory包装NormalGatewayFilter
 * 可以在配置文件中进行配置
 *      filters:
 *          - Normal
 *
 * @author: Leo.Wang, adwyxx@qq.com
 * @date: 2020/7/23 13:30
 */
@Component
public class NormalGatewayFilterFactory extends AbstractGatewayFilterFactory<Object> {
    @Override
    public GatewayFilter apply(Object config) {
        return new NormalGatewayFilter();
    }
}
